<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link type="text/css" rel="stylesheet" href="css/leftCategory.css">
<div id="categoryTitle">
	<!-- 标题  -->
	<div id="cateTitleName">
		<a href="${CONTEXT_ROOT}/SecondServlet?method=category&parentCategoryId=0">图书分类</a>
	</div>
	<!--<div class="more">
			<a href="#">
			<img src="images/more.gif" border="0"></a>
		</div>
		-->
</div>
<div id="cateContent">
	<!--一级分类 class= cateOne-->
	<c:forEach items="${categoryOne}" var="categoryOne">
		<div class="cateOne">
			<div id="cateOneContent">
				<a href="${CONTEXT_ROOT}/SecondServlet?method=list&parentCategoryId=${categoryOne.categoryId}">${categoryOne.categoryName}</a>
			</div>
		</div>
		<!--二级分类-->
		<div class="cateSec">
			<c:forEach items="${categorySec}" var="categorySec">
				<c:if test="${categorySec.parentCategoryId==categoryOne.categoryId}">
					<div id="cateSecContent">
						<a href="${CONTEXT_ROOT}/SecondServlet?method=list&parentCategoryId=${categorySec.categoryId}">${categorySec.categoryName}</a>
					</div>
				</c:if>
			</c:forEach>
		</div>
	</c:forEach>
</div>